package com.smartStatus.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统学校表 实体类
 *
 * @author lby
 * @since 2021-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_tenant")
@ApiModel(value = "SysTenant", description = "系统学校表")
public class SysTenant extends Model<SysTenant> {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学校名称
     */
    @ApiModelProperty(value = "学校名称")
    private String name;

    /**
     * 学校形式 0:全日制 1：半日制
     */
    @ApiModelProperty(value = "学校形式 0:全日制 1：半日制")
    private Integer type;

    /**
     * 省
     */
    @ApiModelProperty(value = "省")
    private String province;

    /**
     * 市
     */
    @ApiModelProperty(value = "市")
    private String city;

    /**
     * 区
     */
    @ApiModelProperty(value = "区")
    private String area;

    /**
     * 市编号
     */
    @ApiModelProperty(value = "市编号")
    private Integer cityNumber;

    /**
     * 省编号
     */
    @ApiModelProperty(value = "省编号")
    private Integer provinceNumber;

    /**
     * 区编号
     */
    @ApiModelProperty(value = "区编号")
    private Integer areaNumber;

    /**
     * 学校地址
     */
    @ApiModelProperty(value = "学校地址")
    private String address;

    private Integer createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableLogic
    private Integer delFlag;
}
